<template>
  <view>
    购物车
    <ul>
      <li v-for="(v, i) in carList" :key="i">{{ v }}</li>
    </ul>
    <view class="">
      {{ carList }}
    </view>
  </view>
</template>

<script>
  import { mapState } from 'vuex'
  export default {
    computed: {
      ...mapState('car', ['carList'])
    }
  }
</script>

<style lang="scss">

</style>
